const mongoose = require("mongoose");
const { Schema, model } = mongoose;
const goodsSchema = new Schema({
  id: Number,
  img: String,
  name: String,
  price: Number,
  unit: String,
  category_id: Number,
  isCollect: Boolean,
  details: String,
  location: String,
  star: Number,
});

module.exports = model("GOODS", goodsSchema, "hez_goods");
